package com.py.credit.dao;

import com.py.credit.entity.ShareLog;
import com.py.framework.core.common.Page;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface ShareLogDao {
    List<ShareLog> getListForPage(@Param(value = "sortType") String sortType, @Param(value = "page") Page page);

    /**
     * 获取列表
     *
     * @return
     */
    List<Map<String, Object>> selectByConditionForPage(@Param(value = "columns") List<String> columns,
                                                       @Param(value = "additionalColumns") String[] additionalColumns,
                                                       @Param(value = "conditions") List<String> conditions, @Param(value = "page") Page page);

    /**
     * 功能描述:
     *
     * @param
     * @return
     * @author YaoS
     * @date 19/4/9 18:30
     */
    void add(@Param(value = "id") String id, @Param(value = "sortType") int sortType,
             @Param(value = "searchCatalog") String searchCatalog, @Param(value = "ip") String ip,
             @Param(value = "username") String username, @Param(value = "realname") String realname,
             @Param(value = "deptId") long deptId, @Param(value = "time") Date time,
             @Param(value = "content") String content);

    /**
     * @param type
     * @return
     */
    Integer selectQueryCountByType(@Param(value = "type") int type);
}